package springboot1706.service;

import java.util.List;

import javax.annotation.Resource;


import org.springframework.stereotype.Service;

import springboot1706.bean.User;
import springboot1706.dao.UserMapper;

@Service
public class UserServiceImpl {

	@Resource
	UserMapper userMapper;

	public int insert(User user) {
		return userMapper.insert(user);
	}

	public int update(User user) {
		return userMapper.update(user);
	}

	public int delete(User user) {
		return userMapper.delete(user);
	}

	public List<User> getAll() {

		return userMapper.getAll();
	}

	public User findUser(User user) {

		return userMapper.findUser(user);
	}

	public List<User> getUserByName(String user) {
		return userMapper.getUserByName(user);
	}

}
